package com.nkl.page.domain;

import com.nkl.common.domain.BaseDomain;
import com.nkl.common.util.StringUtil;
import com.nkl.common.util.Transcode;

public class Infos extends BaseDomain {
	/**
	 * @Fields serialVersionUID : TODO
	 */
	private static final long serialVersionUID = -6104183279189257224L;
	private int info_id; // 
	private String info_title; // 
	private String info_content; // 
	private String info_picture; // 
	private String info_time; // 
	private String info_admin; // 
	private int info_click; // 
	private int info_type; // 1:最新资讯 2：学术动态 3：奖励资助 4：老生常谈
	private String ids; // 

	public void setInfo_id(int info_id){
		this.info_id=info_id;
	}

	public String getInfo_typeDesc(){
		switch (info_type) {
		case 1:
			return "最新资讯";
		case 2:
			return "学术动态";
		case 3:
			return "奖励资助";
		default:
			return "最新资讯";
		}
	}
	
	public int getInfo_id(){
		return info_id;
	}

	public void setInfo_title(String info_title){
		this.info_title=info_title;
	}

	public String getInfo_title(){
		return info_title;
	}

	public void setInfo_content(String info_content){
		this.info_content=info_content;
	}

	public String getInfo_contentShow(){
		if (!StringUtil.isEmptyString(info_content)) {
			return Transcode.htmlDiscode(info_content);
		}
		return info_content;
	}
	
	public String getInfo_content(){
		return info_content;
	}

	public void setInfo_picture(String info_picture){
		this.info_picture=info_picture;
	}

	public String getInfo_picture(){
		return info_picture;
	}

	public void setInfo_time(String info_time){
		this.info_time=info_time;
	}

	public String getInfo_time(){
		return info_time;
	}

	public void setInfo_admin(String info_admin){
		this.info_admin=info_admin;
	}

	public String getInfo_admin(){
		return info_admin;
	}

	public void setInfo_click(int info_click){
		this.info_click=info_click;
	}

	public int getInfo_click(){
		return info_click;
	}

	public void setInfo_type(int info_type){
		this.info_type=info_type;
	}

	public int getInfo_type(){
		return info_type;
	}

	public String getIds() {
		return ids;
	}

	public void setIds(String ids) {
		this.ids = ids;
	}

}
